package com.example.junit;

import com.example.junit.bean.User;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/**
 * ClassName:testJUnit5
 * Package:com.example.junit
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/12-8:48
 * @Version:v1.0
 */
@ExtendWith(SpringExtension.class)
@ContextConfiguration("classpath:spring.xml")
public class testJUnit5 {

    @Autowired
    private User user;
    @Test
    void testUser() {
        String name = user.getName();
        System.out.println(name);
    }
}
